﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Demo05202
{
    class Circle : Shape//圆形类
    {
        private double radius;//半径
        public double Radius { get; set; }

        //引用父类
        public override void GetArea(double num1)
        {
            double area = 0;
            area = 3.14 * num1*num1;
            Console.WriteLine("半径{0}的圆形面积是：{1}",num1,area);
        }
    }
}
